package com.keba.lamp.ai.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import com.keba.basic.base.entity.Entity;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import static com.baomidou.mybatisplus.annotation.SqlCondition.EQUAL;
import static com.keba.lamp.model.constant.Condition.LIKE;


/**
 * <p>
 * 实体类
 * ai调用记录文件表
 * </p>
 *
 * @author twg
 * @date 2025-03-22 13:46:34
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@Builder
@TableName("ai_invoke_file")
public class AiInvokeFile extends Entity<Long> {
    private static final long serialVersionUID = 1L;

    /**
     * 乐观锁
     */
    @TableField(value = "revision", condition = EQUAL)
    @Version
    private Integer revision;
    /**
     * 是否删除，0-未删除，1-删除
     */
    @TableField(value = "is_del", condition = EQUAL)
    private Integer isDel;
    /**
     * 关联调用记录
     */
    @TableField(value = "invoke_record_id", condition = EQUAL)
    private Long invokeRecordId;
    /**
     * 内容;用户自定义提问内容/附件地址（多个附件逗号分隔）
     */
    @TableField(value = "content", condition = LIKE)
    private String content;
    /**
     * 类型;（用户自定义提问内容：text,image_url,audio_url)
     */
    @TableField(value = "type", condition = LIKE)
    private String type;



}
